<?php

class PlansController extends AppController
{
    var $name = 'Plans';


	function getNewPlan($userId = null)
    {
		$this->checkSession();
		$this->set('currUser', $this->requestAction("Users/getUser/$userId"));
    }

	function getLatestPlan($userId = null)
    {
		$this->checkSession();
        return $this->Plan->find("user_id=$userId AND active=1");
    }
}

?>
